package com.shanks.home.ui;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.widget.GridView;

import com.shanks.home.R;

/**
 * GridView
 * @author Shanks
 * @time 2013.11.09
 */
public class GridViewActivity extends Activity{

	private Context context;
	private GridView gridView;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		this.setContentView(R.layout.activity_headimage);
		initView();
	}

	private void initView(){
		context = this;
		gridView = (GridView)this.findViewById(R.id.headimage_gv);
		GridViewAdapter gridViewAdapter = new GridViewAdapter(context);
		gridView.setAdapter(gridViewAdapter);
	}
}